<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.sf.net/frails" prefix="fr"%>

<f:view>
	<h:form>
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
			<head>
				<meta http-equiv="pragma" content="no-cache" />
				<meta http-equiv="cache-control" content="no-cache" />
				<meta http-equiv="expires" content="0" />
				<link href="../css/iframe.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
				<div id="container">
					<div class="titles">
						<h:outputText value="#{$bundle.page_title_content_add}"></h:outputText>
					</div>
					<h:messages />
					<%-- contents--%>
					<table style="">
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_contentName}" />
							</td>
							<td>
								<h:inputText value="#{$.content.contentName}" label="#{$bundle.label_content_contentName}" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_contentLength}" />
							</td>
							<td>
								<h:inputText value="#{$.content.contentLength}" label="#{$bundle.label_content_contentLength}" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_description}" />
							</td>
							<td>
								<h:inputText value="#{$.content.description}" label="#{$bundle.label_content_description}" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_director}" />
							</td>
							<td>
								<h:inputText value="#{$.content.director}" label="#{$bundle.label_content_director}" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_productor}" />
							</td>
							<td>
								<h:inputText value="#{$.content.productor}" label="#{$bundle.label_content_productor}" />
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_actor}" />
							</td>
							<td>
								<h:inputText value="#{$.content.actor}" label="#{$bundle.label_content_actor}" />
							</td>
						</tr>
						<tr>
							<td>
<!--								<h:outputLabel value="#{$bundle.label_content_cp}" />-->
							</td>
							<td>
								<h:inputHidden validator="#{$.content.cp}"></h:inputHidden>
<!--								<h:selectOneMenu id="cp" value="#{$.content.cp}">-->
<!--									<f:selectItems value="#{$.cpItems}" />-->
<!--								</h:selectOneMenu>-->
							</td>
						</tr>
						<tr>
							<td>
								<h:outputLabel value="#{$bundle.label_content_contentType}" />
							</td>
							<td>
								<h:selectOneMenu value="#{$.content.contentType}" >
									<f:selectItems value="#{$.contentTypeList}" />
								</h:selectOneMenu>
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<h:commandButton value="添加" actionListener="#{$.create}" action="r:/content/contentEncrypt" />
							</td>
						</tr>
					</table>
				</div>
			</body>
		</html>
	</h:form>
</f:view>

